<?php
$errorLevel = ($_SERVER['REMOTE_ADDR'] == '127.0.0.1')? E_ALL : 0;
error_reporting($errorLevel);

define(
  'X2_COMPATIBILITY',
  extension_loaded('domxml') &&
  extension_loaded('ftp') &&
 (extension_loaded('iconv') || extension_loaded('mbstring')) &&
  extension_loaded('mysql') &&
  extension_loaded('zlib')
);

define('X2_CHARSET', 'UTF-8');

define('X2', dirname(__FILE__));
define('X2_PROJECT', $_SERVER['DOCUMENT_ROOT'] . "/~x2");
define('X2_NS', 'http://www.loukianov.com/x2');
?>